{extend name="Base:base" /}
{block name="title"}<strong class="am-text-primary am-text-lg">菜单管理</strong> / <small> 菜单增加 </small>{/block}
{block name="content"}
<div class="am-g">
    <div class="am-u-sm-6">
        <form class="am-form" method="post" action="{url:('admin/menu/add')}">
            <div class="am-form-group">
                <label for="title">菜单名称:</label>
                <input type="text" class="" id="title" placeholder="输入菜单名字" name="title" required>
            </div>
            <div class="am-form-group">
                <label for="icon">图标:</label>
                <input type="text" class="" id="icon" placeholder="输入图标名称" name="icon" required>
                <small>图标挑选地址：<a href="http://amazeui.org/css/icon" target="_blank">http://amazeui.org/css/icon</a></small>
            </div>
            <div class="am-form-group">
                <label for="url">链接:</label>
                <input type="text" class="" id="url" placeholder="输入链接" name="url" required>
                <small>（U函数解析的URL或者外链）</small>
            </div>
            <div class="am-form-group">
                <label for="">上级菜单:</label>
                <select id="pid" name="pid" >
                    <option value="0">顶级菜单</option>
                    {volist name="list" id="vo"}
                        <option value="{$vo.id}">{$vo.title}</option>
                    {/volist}
                </select>
                <span class="am-form-caret"></span>
            </div>
            <div class="am-form-group">
                <label for="status">状态:</label>
                <select id="status" name="status">
                    <option value="0">可用</option>
                    <option value="1">禁用</option>
                </select>
                <span class="am-form-caret"></span>
            </div>
            <p>
                <button type="submit" class="am-btn am-btn-danger">提交</button>
                <button type="reset" class="am-btn am-btn-primary">重填</button>
            </p>
        </form>
    </div>
</div>
{/block}